package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperOrderPurchaseDetail implements Serializable {
    /**
     * 采购订单ID
     */
    private Integer orderId;

    /**
     * 采购物品ID
     */
    private Integer gId;

    /**
     * 采购数量
     */
    private Integer num;

    /**
     * 单价
     */
    private Double price;

    /**
     * 总价
     */
    private Double tprice;

    /**
     * 入库状态（0--未完成；1--已完成）
     */
    private Integer insStatus;

    /**
     * 入库数量
     */
    private Integer insNums;

    /**
     * 税率
     */
    private Double trate;

    /**
     * 额外成本
     */
    private Double exprice;

    /**
     * 仓库ID
     */
    private Integer stockId;

    private static final long serialVersionUID = 1L;

    /**
     * 采购订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 采购订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 采购物品ID
     */
    public Integer getgId() {
        return gId;
    }

    /**
     * 采购物品ID
     */
    public void setgId(Integer gId) {
        this.gId = gId;
    }

    /**
     * 采购数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 采购数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 单价
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 单价
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 总价
     */
    public Double getTprice() {
        return tprice;
    }

    /**
     * 总价
     */
    public void setTprice(Double tprice) {
        this.tprice = tprice;
    }

    /**
     * 入库状态（0--未完成；1--已完成）
     */
    public Integer getInsStatus() {
        return insStatus;
    }

    /**
     * 入库状态（0--未完成；1--已完成）
     */
    public void setInsStatus(Integer insStatus) {
        this.insStatus = insStatus;
    }

    /**
     * 入库数量
     */
    public Integer getInsNums() {
        return insNums;
    }

    /**
     * 入库数量
     */
    public void setInsNums(Integer insNums) {
        this.insNums = insNums;
    }

    /**
     * 税率
     */
    public Double getTrate() {
        return trate;
    }

    /**
     * 税率
     */
    public void setTrate(Double trate) {
        this.trate = trate;
    }

    /**
     * 额外成本
     */
    public Double getExprice() {
        return exprice;
    }

    /**
     * 额外成本
     */
    public void setExprice(Double exprice) {
        this.exprice = exprice;
    }

    /**
     * 仓库ID
     */
    public Integer getStockId() {
        return stockId;
    }

    /**
     * 仓库ID
     */
    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", gId=").append(gId);
        sb.append(", num=").append(num);
        sb.append(", price=").append(price);
        sb.append(", tprice=").append(tprice);
        sb.append(", insStatus=").append(insStatus);
        sb.append(", insNums=").append(insNums);
        sb.append(", trate=").append(trate);
        sb.append(", exprice=").append(exprice);
        sb.append(", stockId=").append(stockId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperOrderPurchaseDetail other = (SuperOrderPurchaseDetail) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getgId() == null ? other.getgId() == null : this.getgId().equals(other.getgId()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getTprice() == null ? other.getTprice() == null : this.getTprice().equals(other.getTprice()))
            && (this.getInsStatus() == null ? other.getInsStatus() == null : this.getInsStatus().equals(other.getInsStatus()))
            && (this.getInsNums() == null ? other.getInsNums() == null : this.getInsNums().equals(other.getInsNums()))
            && (this.getTrate() == null ? other.getTrate() == null : this.getTrate().equals(other.getTrate()))
            && (this.getExprice() == null ? other.getExprice() == null : this.getExprice().equals(other.getExprice()))
            && (this.getStockId() == null ? other.getStockId() == null : this.getStockId().equals(other.getStockId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getgId() == null) ? 0 : getgId().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getTprice() == null) ? 0 : getTprice().hashCode());
        result = prime * result + ((getInsStatus() == null) ? 0 : getInsStatus().hashCode());
        result = prime * result + ((getInsNums() == null) ? 0 : getInsNums().hashCode());
        result = prime * result + ((getTrate() == null) ? 0 : getTrate().hashCode());
        result = prime * result + ((getExprice() == null) ? 0 : getExprice().hashCode());
        result = prime * result + ((getStockId() == null) ? 0 : getStockId().hashCode());
        return result;
    }
}